#ifndef NETWORK_H
#define NETWORK_H

#define PORT 44444
#define PORT_STRING "44444"

namespace Network {

typedef enum ConnectionStatus {
    DISCONNECTED,
    HOSTING_WAITING,
    HOSTING_CONNECTED,
    CLIENT_WAITING,
    CLIENT_CONNECTED
} ConnectionStatus;

typedef enum PortStatus {
    ERROR,
    NOT_FORWARDED,
    SEARCHING,
    VALIDATING,
    FORWARDING,
    FORWARDED
} PortStatus;

typedef enum SocketMessage {
    INDEX_0 = 0,
    INDEX_1,
    INDEX_2,
    INDEX_3,
    INDEX_4,
    INDEX_5,
    INDEX_6,
    CHAT_INCOMING,
    REQUEST_NEW_GAME,
    ACCEPT_NEW_GAME,
    REJECT_NEW_GAME,
    REQUEST_UNDO,
    ACCEPT_UNDO,
    REJECT_UNDO
} SocketMessage;

}

#endif // NETWORK_H
